package com.szh.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 图书实体类
 *
 * @author: SongZiHao
 * @date: 2023/5/10
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("t_book")
@ApiModel(description = "图书实体")
public class Book extends BaseEntity {

    @ApiModelProperty(value = "图书名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "图书简介")
    @TableField("intro")
    private String intro;

    @ApiModelProperty(value = "图书类型")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "图书售价")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "图书作者")
    @TableField("author")
    private String author;
}
